/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hydms.students.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

/**
 * 学生信息Entity
 * @author 孟朋朋
 * @version 2017-04-01
 */
public class DmsStudents extends DataEntity<DmsStudents> {
	
	private static final long serialVersionUID = 1L;
	private String studentNumber;		// 学号
	private String studentName;		// 学生姓名
	private String studentSex;		// 学生性别
	private String dormitoryNumber;		// 宿舍号
	private String classesNumber;		// 班级
	private Date checkInDate;		// 入住日期
	private String phoneNumber;		// 联系电话
	private Date checkOutDate;		// 退房日期
	private String parentsId;		// 父节点1
	private String parentsIds;		// 其它费用
	
	
	private String allFee;		// 住宿总费用
	private String accommodationFee; //住宿费用
	private String hydropowerFee;//水电费
	private String fine;//罚金
	public String getAccommodationFee() {
		return accommodationFee;
	}

	public void setAccommodationFee(String accommodationFee) {
		this.accommodationFee = accommodationFee;
	}

	public String getHydropowerFee() {
		return hydropowerFee;
	}

	public void setHydropowerFee(String hydropowerFee) {
		this.hydropowerFee = hydropowerFee;
	}

	public String getFine() {
		return fine;
	}

	public void setFine(String fine) {
		this.fine = fine;
	}

	
	
	public DmsStudents() {
		super();
	}

	public DmsStudents(String id){
		super(id);
	}

	@Length(min=0, max=64, message="学号长度必须介于 0 和 64 之间")
	@ExcelField(title="学号", type=0,align=2, sort=10)
	public String getStudentNumber() {
		return studentNumber;
	}

	public void setStudentNumber(String studentNumber) {
		this.studentNumber = studentNumber;
	}
	
	@Length(min=0, max=64, message="学生姓名长度必须介于 0 和 64 之间")
	@ExcelField(title="学生姓名",type=0, align=2, sort=20)
	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}
	
	@Length(min=0, max=4, message="学生性别长度必须介于 0 和 4 之间")
	@ExcelField(title="学生性别",type=0, align=2, sort=30)
	public String getStudentSex() {
		return studentSex;
	}

	public void setStudentSex(String studentSex) {
		this.studentSex = studentSex;
	}
	
	@Length(min=0, max=10, message="宿舍号长度必须介于 0 和 10 之间")
	@ExcelField(title="宿舍号",type=0, align=2, sort=40)
	public String getDormitoryNumber() {
		return dormitoryNumber;
	}

	public void setDormitoryNumber(String dormitoryNumber) {
		this.dormitoryNumber = dormitoryNumber;
	}
	
	@Length(min=0, max=30, message="班级长度必须介于 0 和 30 之间")
	@ExcelField(title="班级",type=0, align=2, sort=50)
	public String getClassesNumber() {
		return classesNumber;
	}

	public void setClassesNumber(String classesNumber) {
		this.classesNumber = classesNumber;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="入住日期", type=0, align=1, sort=60)
	public Date getCheckInDate() {
		return checkInDate;
	}

	public void setCheckInDate(Date checkInDate) {
		this.checkInDate = checkInDate;
	}
	
	@Length(min=0, max=20, message="联系电话长度必须介于 0 和 20 之间")
	@ExcelField(title="联系电话",type=0, align=2, sort=70)
	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getCheckOutDate() {
		return checkOutDate;
	}

	public void setCheckOutDate(Date checkOutDate) {
		this.checkOutDate = checkOutDate;
	}
	
	@Length(min=0, max=64, message="父节点1长度必须介于 0 和 64 之间")
	public String getParentsId() {
		return parentsId;
	}

	public void setParentsId(String parentsId) {
		this.parentsId = parentsId;
	}
	
	@Length(min=0, max=64, message="父节点2长度必须介于 0 和 64 之间")
	public String getParentsIds() {
		return parentsIds;
	}

	public void setParentsIds(String parentsIds) {
		this.parentsIds = parentsIds;
	}
	
	@Length(min=0, max=20, message="住宿总费用长度必须介于 0 和 20 之间")
	@ExcelField(title="住宿总费",type=1, align=2, sort=90)
	public String getAllFee() {
		return allFee;
	}

	public void setAllFee(String allFee) {
		this.allFee = allFee;
	}
	
}